package com.xiaoq.manager.entity;

import java.io.Serializable;
import java.util.List;

import org.mongodb.morphia.annotations.Entity;

import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
import com.xiaoq.MongoEntity;

import io.swagger.annotations.ApiModelProperty;
/**
 * 管理员角色相关的表
 * @author wang zhihao
 *
 */
@JsonAutoDetect(fieldVisibility = Visibility.ANY, getterVisibility = Visibility.NONE, setterVisibility = Visibility.NONE)
@JsonInclude(value = JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
@Entity(value="merchant_role",noClassnameStored=true)
public class MerchantRoleEntity extends MongoEntity implements Serializable{
	
	@ApiModelProperty(value="角色编码 000表示超级管理员 100表示其他管理员")
	private String code; 
	
	@ApiModelProperty(value="角色名称")
	private String name; //
	private String memo; //简介
	private String sitesId; //角色所在景区
	private List<MerchantFunInner>  roleList; // 功能列表
	
	public String getSitesId() {
		return sitesId;
	}
	public void setSitesId(String sitesId) {
		this.sitesId = sitesId;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getMemo() {
		return memo;
	}
	public void setMemo(String memo) {
		this.memo = memo;
	}
	public List<MerchantFunInner> getRoleList() {
		return roleList;
	}
	public void setRoleList(List<MerchantFunInner> roleList) {
		this.roleList = roleList;
	}

}
